package xkp.lesson.springboot_shiro.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xkp.lesson.springboot_shiro.entity.JsonData;

@RestController
public class PublicController {
    @RequestMapping("/need_login")
    public JsonData needLogin(){

        return JsonData.buildSuccess("温馨提示：请使用对应的账号登录",-2);
    }


    @RequestMapping("/not_permit")
    public JsonData notPermit(){

        return JsonData.buildSuccess("温馨提示：拒绝访问，没权限",-3);
    }
}
